package eceptionDemo;
public class MyException extends Exception {
    private String message;
    @Override
    public String toString() {
        return "MyException{" +message+ '}';
    }

    public MyException(String message) {
        this.message=message;
    }
 }
